package nl.project.system;

import java.io.IOException;

import nl.project.data.controller.MembersDAO;
import nl.project.source.Message;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 * @author Wouter
 * 
 */

@SuppressWarnings("serial")
public class MessageServlet extends HttpServlet {
	@Override
	protected void doGet(HttpServletRequest req, HttpServletResponse resp)
			throws ServletException, IOException {
		for(Message message : MembersDAO.messages){
		resp.getWriter().print(message + "<br><br>");
		}
	}
}
